import bs4, requests

res = requests.get("https://www.qq.com")
res.raise_for_status()
soup = bs4.BeautifulSoup(res.text)
# print(res.text[:2000])
elems = soup.select(".cate")
print(type(elems))
for i in range(0, len(elems) - 1):
    print(elems[i])
